<template>
  <div class="home">
    <div class="heads">多家网</div>
    <div class="mains">
        <router-view/>
    </div>
    <div class="foots">
        <p><router-link to="/home/page">首页</router-link></p>
        <p><router-link to="/home/my">我的</router-link></p>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss">
.home {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .heads {
    width: 100%;
    height: 50px;
    background: orangered;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .mains {
    width: 100%;
    flex: 1;
    overflow: scroll;
  }
  .foots {
    width: 100%;
    height: 50px;
    border-top: solid 1px #ccc;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    .router-link-active{
        color: rgb(19, 226, 147);
        font-size: 16px;
        font-weight: bold;
    }
    p {
      width: 50%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}
</style>
